package com.sany.boot.influxdb;

import org.influxdb.InfluxDB;
import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties("com.sany.influxdb")
public class InfluxdbProperties {
    private String url = "http://127.0.0.1:8086";
    private String username = "root";
    private String password = "root";
    private String database = "sany";
    private String retentionPolicy = "autogen";
    private InfluxDB.LogLevel logLevel = InfluxDB.LogLevel.BASIC;


    public InfluxDB.LogLevel getLogLevel() {
        return logLevel;
    }

    public void setLogLevel(InfluxDB.LogLevel logLevel) {
        this.logLevel = logLevel;
    }

    public String getRetentionPolicy() {
        return retentionPolicy;
    }

    public void setRetentionPolicy(String retentionPolicy) {
        this.retentionPolicy = retentionPolicy;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getDatabase() {
        return database;
    }

    public void setDatabase(String database) {
        this.database = database;
    }
}
